{extend name='base'}
{block name='content'}
<div class="m-b-md">
    {if condition="input('param.taid')"}
    <h2 class="m-b-none">类型属性编辑</h2>
    {else/}
    <h2 class="m-b-none">类型属性添加</h2>
    {/if}
</div>
<form class="form-horizontal" id="form" action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">属性名称</label>
                <div class="col-sm-9">
                    <input type="text" name="taname" value="{$oldData['taname']}">
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">属性类别</label>
                <div class="col-sm-9">
                        <input type="radio" name="class" value="1" {if condition="$oldData['class']==1" } checked{/if}>规格
                        <input type="radio" name="class" value="2" {if condition="$oldData['class']==2" } checked{/if}>属性

                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">属性值</label>
                <div class="col-sm-9">
                    <textarea name="tavalue" class="form-control" placeholder="多个属性请用逗号隔开" rows="5">{$oldData['tavalue']}</textarea>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="tid" value="{:input('param.tid')}">
    <button class="btn btn-primary" type="submit">确定</button>
</form>

{/block}